package mediator;

/**
 * @Author: Ma JiBin
 * @Email: 1423553596@qq.com
 * @Date: 2018/9/12 14:32
 * @Description: 用户类
 */
public class User {
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public User(String name) {
        this.name = name;
    }

    /**
     * 发送消息方法
     * @param message 消息内容
     */
    public void sendMessage(String message) {
        ChatRoom.showMessage(this, message);
    }
}
